package com.flurry.android.caching;

import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.util.Log;
import com.flurry.android.AppCloudResponse;

final class l
{
  private b gA;
  private Context mContext;

  public l(Context paramContext)
  {
    this.mContext = paramContext;
    new c();
    this.gA = new b();
  }

  public final m i(ObjectOperationData paramObjectOperationData)
  {
    long l = c.h(paramObjectOperationData);
    ConnectivityManager localConnectivityManager;
    int i;
    label63: m localm;
    if (l == -1L)
    {
      Log.i("RetryManager", "timeToStart == OPERATION_DIDNT_PROCCEED_CODE");
      paramObjectOperationData.incrementRetryCount();
      localConnectivityManager = (ConnectivityManager)this.mContext.getSystemService("connectivity");
      NetworkInfo localNetworkInfo1 = localConnectivityManager.getNetworkInfo(1);
      if ((localNetworkInfo1 == null) || (!localNetworkInfo1.isConnected()))
        break label152;
      i = 1;
      if (i == 0)
        break label211;
      localm = this.gA.a(paramObjectOperationData);
      label78: switch (localm.it)
      {
      default:
        Log.e("RetryManager", "ERROR! UNKNOWN RESPONSE CODE!");
      case 701:
      case 731:
      case 711:
      case 721:
      }
    }
    label152: label211: 
    do
    {
      while (true)
      {
        return localm;
        try
        {
          Thread.sleep(l);
        }
        catch (InterruptedException localInterruptedException)
        {
          localInterruptedException.printStackTrace();
        }
      }
      break;
      NetworkInfo localNetworkInfo2 = localConnectivityManager.getNetworkInfo(0);
      if ((localNetworkInfo2 != null) && (localNetworkInfo2.isConnected()))
      {
        i = 1;
        break label63;
      }
      NetworkInfo localNetworkInfo3 = localConnectivityManager.getActiveNetworkInfo();
      if ((localNetworkInfo3 != null) && (localNetworkInfo3.isConnected()))
      {
        i = 1;
        break label63;
      }
      i = 0;
      break label63;
      localm = new m((byte)0);
      localm.it = 711;
      localm.iu = new AppCloudResponse(null);
      break label78;
    }
    while (c.h(paramObjectOperationData) == -1L);
    return i(paramObjectOperationData);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.caching.l
 * JD-Core Version:    0.6.2
 */